/*
 * @Descripttion: 文件说明
 * @version: V1.0
 * @Author: GW
 * @Date: 2021-07-29 10:40:41
 * @LastEditors: GW
 * @LastEditTime: 2022-06-01 14:16:16
 */
import { axios } from "../../utils/request";

const api = {
    pageList: "/persons/note/pageList",
    save: "/persons/note/save",
    deleteNote: "/persons/note/delete",
};

/**
 * 获取列表
 */
export function pageList (data) {
    return axios({
        url: api.pageList,
        method: "get",
        params: data
    });
}

/**
 * 保存
 */
export function save (data) {
    return axios({
        url: api.save,
        method: "post",
        data: data
    });
}


/**
 * 删除图片地址
 */
export function deleteNote (data) {
    return axios({
        url: api.deleteNote,
        method: "post",
        data: data
    });
}


//分类
export function deleteType (data) {
    return axios({
        url: "/user/noteType/delete",
        method: "delete",
        params: data
    });
}

export function getType (data) {
    return axios({
        url: "/user/noteType/getALl",
        method: "get",
        params: data
    });
}

export function saveType (data) {
    return axios({
        url: "/user/noteType/save",
        method: "post",
        data: data
    });
}